package com.ce.framework.log4j;

import java.sql.Connection;
import java.sql.SQLException;

import org.apache.log4j.jdbc.JDBCAppender;

import com.ce.framework.context.FrameworkContext;

public class CsmisDbAppender extends JDBCAppender {

	@Override
	protected Connection getConnection() throws SQLException {
		try {
			return FrameworkContext.getConnection();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}
